#//@reference Agile Web Development with Rails (4th Edition) (Whitney, Clare x11106131)

class LineItem < ActiveRecord::Base
  belongs_to :order
  belongs_to :product
  belongs_to :cart



def total_price
  product.price * quantity
end

end
